package cn.itcast.clients.fullback;

import cn.itcast.clients.UserFeignApi;
import cn.itcast.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @author dejawu
 * @Title: UserFeignApiFallBack
 * @Description: TODO
 * @date 2021/1/3
 */
@Component
public class UserFeignApiFallBack implements UserFeignApi {
    @Override
    public User findById(String username) {
        User user = new User();
        user.setName(username);
        user.setNickName("UserFeignApiFallBack");
        return user;
    }
}